package com.heima.wemedia.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vo.WmNewsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WmNewsMapper extends BaseMapper<WmNews> {

    List<WmNewsVO> getVO(@Param("title") String title, @Param("status") Short status, @Param("page") Integer page, @Param("size") Integer size);

    Long getCount(@Param("title") String title, @Param("status") Short status);
}